ThreeParameterFunction

public final class ThreeParameterFunction<T extends Object, U extends Object, V extends Object> extends FunctionDeclaration


A declared three param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

See also
defineFunction

for how to create an instance of this class.

Summary

Public methods

@NonNull JSONObject

Run the attached function with the provided arguments.

@NonNull List<@NonNull Schema<Object>>

The parameters of the attached function as a list of Schema.

Public fields

function

public final @NonNull SuspendFunction3<@NonNull T, @NonNull U, @NonNull V, @NonNull JSONObjectfunction

param1

public final @NonNull Schema<@NonNull T> param1

param2

public final @NonNull Schema<@NonNull U> param2

param3

public final @NonNull Schema<@NonNull V> param3

Public methods

execute

public @NonNull JSONObject execute(@NonNull FunctionCallPart part)

Run the attached function with the provided arguments.

getParameters

public @NonNull List<@NonNull Schema<Object>> getParameters()

The parameters of the attached function as a list of Schema.